import request from '@/utils/request'

// 创建企业
export function createCompany(data) {
  return request({
    url: '/createCompany',
    method: 'post',
    params: data
  })
}

// 搜索并加入企业
export function joinCompany(data) {
  return request({
    url: '/joinCompany',
    method: 'post',
    params: data
  })
}

// 所有企业
export function findAllCompany(data) {
  return request({
    url: '/findAllCompany',
    method: 'get',
    params: data
  })
}

// 删除未认证企业
export function deleteCompany(data) {
  return request({
    url: '/deleteCompany',
    method: 'get',
    params: data
  })
}

// 查询个人或企业剩余签署量
export function getRemainingNum(data) {
  return request({
    url: '/console/signFlowFeeOrder/getRemainingNum',
    method: 'get',
    params: data
  })
}

// 获取最新消息通知
export function getNewNotices(userId) {
  return request({
    url: '/work/notices',
    method: 'get',
    params: {userId:userId}
  })
}

// 新增 短网址
export function addShortUrl(sourceUrl) {
  return request({
    url: '/addShortUrl',
    method: 'post',
    data: sourceUrl
  })
}

